package com.woniuxy.Test;

import com.woniuxy.Service.RolesService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @Author：向天浩
 * @Date：2022/1/20 17:37
 * @Description :TODO
 */

public class AspectjTest {
    public static void main(String[] args) {
        ApplicationContext applicationContext=new ClassPathXmlApplicationContext("applicationContext.xml");
        //使用getBean的方式获取对象，才会扫描xml配置文件，触发里面的所有配置
        RolesService rolesServiceImp = applicationContext.getBean("rolesServiceImp", RolesService.class);
        rolesServiceImp.findAll();
    }
}
